/**  
 * Project Name:jd-worker-server  
 * File Name:JdProductInfo.java  
 * Package Name:com.moxie.cloud.services.jdworker.dto  
 * Date:2016年6月17日上午10:51:42  
 * Copyright (c) 2016, yuandong@51dojo.com All Rights Reserved.  
 *  
*/  
  
package com.example.service.webhook.business.jingdong.entity;

import java.util.Date;

import com.example.service.webhook.repository.base.Saveable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**  
 * ClassName:JdProductInfo <br/>  
 * Function: TODO ADD FUNCTION. <br/>  
 * Reason:   TODO ADD REASON. <br/>  
 * Date:     2016年6月17日 上午10:51:42 <br/>  
 * @author   yuandong  
 * @version    
 * @since    JDK 1.6
 * Modified by liyang on 20171019 接口升级
 * @see        
 */
@JsonIgnoreProperties(value = { "primaryVal", "keyColumns", "tableName" }, ignoreUnknown = true)
public class JdProductInfoEntity implements Saveable{
	private long id;
	private String userId;
	private String mappingId;
	private String tradeId;
	private String name;   //商品名称
	private long productId;//商品id
	private String wareUrl;//商品链接
	private String imgPath;//商品图片
	private Date createTime;
    private Date lastModifyTime;

	/**
	 * 20171019接口升级，增加字段 商品数量
	 */
	private Integer quantity;

    private static final String[] keyColumns       = { "id" };
    private static final String   tableName        = "t_jd_productinfo";

    @Override
    public String getTableName() {
        return tableName;
    }

    @Override
    public String[] getKeyColumns() {
        return keyColumns;
    }
    
    @Override
    public String getPrimaryVal() {
        return String.valueOf(id);
    }

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMappingId() {
		return mappingId;
	}

	public void setMappingId(String mappingId) {
		this.mappingId = mappingId;
	}

	public String getTradeId() {
		return tradeId;
	}

	public void setTradeId(String tradeId) {
		this.tradeId = tradeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getProductId() {
		return productId;
	}

	public void setProductId(long productId) {
		this.productId = productId;
	}

	public String getWareUrl() {
		return wareUrl;
	}

	public void setWareUrl(String wareUrl) {
		this.wareUrl = wareUrl;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
}
  
